package category.domain;

import lombok.Data;
import com.aidex.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 商品类目表对象 b_category
 * @author 1205560870@qq.com
 * @email 1205560870@qq.com
 * @date 2025-03-10
 */
@Data
public class BCategory extends BaseEntity<BCategory>
{
    private static final long serialVersionUID = 1L;

    /** 类目编码 */
    @Excel(name = "类目编码")
    @LogField
    @FieldRemark(name = "类目编码",field = "categoryCode")
    private String categoryCode;

    /** 类目名称 */
    @Excel(name = "类目名称")
    @LogField
    @FieldRemark(name = "类目名称",field = "categoryName")
    private String categoryName;

    /** 排序 */
    @Excel(name = "排序")
    @LogField
    @FieldRemark(name = "排序",field = "treeSort")
    private Long treeSort;

    /** 类目状态（0正常 1停用） */
    @Excel(name = "类目状态", dictType = "sys_normal_disable")
    @LogField
    @FieldRemark(name = "类目状态",field = "status")
    private String status;

    /** 父类目ID */
    private String parentId;

    /** 父类目ID集合 */
    private String parentIds;

    /** 排序集合 */
    private String treeSorts;

    /** 层级 */
    private Long treeLevel;

    /** 是否子节点（0是 1否） */
    private String treeLeaf;

    public void setCategoryCode(String categoryCode) 
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode() 
    {
        return categoryCode;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setTreeSort(Long treeSort) 
    {
        this.treeSort = treeSort;
    }

    public Long getTreeSort() 
    {
        return treeSort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }

    public void setParentIds(String parentIds) 
    {
        this.parentIds = parentIds;
    }

    public String getParentIds() 
    {
        return parentIds;
    }

    public void setTreeSorts(String treeSorts) 
    {
        this.treeSorts = treeSorts;
    }

    public String getTreeSorts() 
    {
        return treeSorts;
    }

    public void setTreeLevel(Long treeLevel) 
    {
        this.treeLevel = treeLevel;
    }

    public Long getTreeLevel() 
    {
        return treeLevel;
    }

    public void setTreeLeaf(String treeLeaf) 
    {
        this.treeLeaf = treeLeaf;
    }

    public String getTreeLeaf() 
    {
        return treeLeaf;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryCode", getCategoryCode())
            .append("categoryName", getCategoryName())
            .append("treeSort", getTreeSort())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("id", getId())
            .append("parentId", getParentId())
            .append("parentIds", getParentIds())
            .append("treeSorts", getTreeSorts())
            .append("treeLevel", getTreeLevel())
            .append("treeLeaf", getTreeLeaf())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
